using System;
using System.Collections.Generic;
using System.Text;
using System.Collections; 

using Entities;

namespace IDAL
{
    public interface IAccountDAO
    {
        IList<AccountInfo> GetAll();

        bool Insert(AccountInfo acc);

        bool Update(AccountInfo acc);

        bool UpdatePassword(AccountInfo acc);

        bool UpdateDiscount(string discount, string username);

        bool UpdateDiscountAndRole(string role, string discount, string username);

        AccountInfo GetByUserName(string username);

        bool CheckExistAccount(string username);

        ArrayList getRightUsers(string username, string password);

        string CheckAnswer(string answer);

        string GetQuestion(string username);

        bool Delete(AccountInfo acc);
    }
}
